package com.jz.bean;

import com.jz.util.TimeUtil;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2015/11/6.
 */
@XmlRootElement(name = "SynchronizedAppConfig")
public class SynchronizedAppConfigBean {
    private List<AppInfoBean> list = new ArrayList<AppInfoBean>();
    private String createTime  = "";
    private String updateTime ="";

    public SynchronizedAppConfigBean(){
        createTime = TimeUtil.getTime();
        updateTime = createTime;
    }


    public List<AppInfoBean> getList() {
        return list;
    }

    @XmlElementWrapper(name="infolist")
    @XmlElement(name="AppInfo")
    public void setList(List<AppInfoBean> list) {
        this.list = list;
    }

    public String getCreateTime() {
        return createTime;
    }

    @XmlElement(name = "createtime")
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    @XmlElement(name = "updatetime")
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
